﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YBApproval.UserControls;
using YBApproval.Model;
using YBApproval.BLL;
using YBApproval.IDAL;

namespace YBApproval
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //this.UCForm1.FormId = 1;
            //this.UCForm1.RecordId = new Guid("FA22AB8B-5B4C-42FD-BAC6-FED1D08195EE");
            //this.UCView1.RecordId = new Guid("FA22AB8B-5B4C-42FD-BAC6-FED1D08195EE");
        }

        

        protected void Button1_Click(object sender, EventArgs e)
        {
            IInstanceApproval dal = DALFactory.GetDAL<IInstanceApproval>();
            List<InstanceApproval> list = dal.GetApprovedItems(1);
            string name = list[0].Record.Process.Name;
        }
    }
}